﻿package cn.poco.pepsi.Service_impl;

import java.util.ArrayList;

import cn.poco.pepsi.bean.Band;
import cn.poco.pepsi.bean.ClassBean;
import cn.poco.pepsi.bean.Restaurant;


public interface IRank {

	public final static String RANK_TYPE_PATH
		="http://img-m.poco.cn/mypoco/mtmpfile/food_iphone/get_band_info.php?cd=#a";
	
	public final static String RANK_RES_PaTH
		="http://img-m.poco.cn/mypoco/mtmpfile/food_iphone/get_band_list.php?rankid=#a";
	
	public final static String RANK_TOP_PATH
		="http://img-m.poco.cn/mypoco/mtmpfile/food_iphone/get_restaurant_top100.php?cd=#a&s=#b&l=#c";
	
	public final static String RANK_CLASS_PATH
		="http://img-m.poco.cn/mypoco/mtmpfile/food_iphone/get_res_class_list.php?cd=#a";
	
	public final static String RANK_RES_CLASSID_PATH
		="http://img-m.poco.cn/mypoco/mtmpfile/food_iphone/get_res_by_class_id.php?cd=#a&classid=#b&s=#c&l=#d";
	
	
	/**
	 * 根据城市ID获取排行榜类型
	 * @param citycode
	 * @return
	 * @throws Exception
	 */
	public ArrayList<Band> GetRanksByCitycode(String citycode,String type) throws Exception;
	
	/**
	 * 根据排行id获取餐厅列表
	 * @param rankid
	 * @return
	 * @throws Exception
	 */
	public ArrayList<Restaurant> GetResByRankid(String rankid) throws Exception;
	
	
	/**
	 * 获取TOP100餐厅列表
	 * @param citycode
	 * @param s
	 * @param l
	 * @return
	 * @throws Exception
	 */
	public ArrayList<Restaurant> GetTopRes(String citycode,int s,int l) throws Exception;
	
	/**
	 * 获取餐厅类别
	 * @param citycode
	 * @return
	 * @throws Exception
	 */
	public ArrayList<ClassBean> getResClass(String citycode) throws Exception;
	
	
	
	public ArrayList<Restaurant> getResByClassId(String citycode,String classId,int s,int l) throws Exception;
}
